// 所有服务商页面的api
import request from '@/utils/request'

// 省份/api/provinces
export function provinces() {
  return request({
    url: 'api/provinces/',
    method: 'get'
  })
}

// 市/api/cities/{provinceId}
export function cities(id) {
  return request({
    url: 'api/cities/' + id,
    method: 'get'
  })
}

// 区县/api/districts/{cityId}
export function districts(id) {
  return request({
    url: 'api/districts/' + id,
    method: 'get'
  })
}

// /api/linkage省市区
export function area() {
  return request({
    url: 'api/linkage/',
    method: 'get'
  })
}

// /api/banks/all所有银行卡名称
export function banks() {
  return request({
    url: 'api/banks/all/',
    method: 'get'
  })
}
